﻿@model LeEdu.MODEL.Courses

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<!-- 网页头部分布视图 -->
@Html.Partial("~/Views/Shared/HouTai_Header.cshtml")
<body>
    <!-- 网页导航菜单分布视图 -->
    @Html.Partial("~/Views/Shared/HouTai_DaoHang.cshtml")

    <div class="container">
        <div class="row">

            <!-- 网页左侧菜单分布视图 -->
            @Html.Partial("~/Views/Shared/CouseCreateManage_Menu_Left.cshtml")

            <!--课程图片-->



            <div class="col-md-9">

                <style>
                    .ui-autocomplete {
                        border: 1px solid #ccc;
                        background-color: #FFFFFF;
                        box-shadow: 2px 2px 3px #EEEEEE;
                    }

                    .ui-autocomplete-ctn {
                        margin: 0;
                        padding: 0;
                    }

                    .ui-autocomplete-item {
                        width: 180px;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                        line-height: 30px;
                        padding: 0 10px 0 10px;
                        cursor: default;
                    }

                    .ui-autocomplete-item-hover {
                        background: #f2f2f2;
                    }

                    .ui-autocomplete-item-hl {
                        background: #F6FF94;
                    }
                </style>

                <div class="panel panel-default panel-col">
                    <div class="panel-heading">教师设置</div>
                    <div class="panel-body">

                        <form data-widget-cid="widget-0" novalidate="novalidate" class="form-horizontal" id="course-form" method="post" action="/Course/CourseTeacher1">
                            <div data-widget-cid="widget-0" class="form-group" id="teachers-form-group">
                                <div class="col-md-2 control-label"><label>已添加教师</label></div>
                                <div class="col-md-8 controls">
                                    <ul class="list-group teacher-list-group sortable-list" id="teacher-list-group" data-role="list" style="">
                                        <li class="list-group-item clearfix" data-role="item">
                                            <span class="glyphicon glyphicon-resize-vertical sort-handle"></span>
                                            @{
                                                var ddd = Model.UserInfo.XingMing == null ? "" : (Model.UserInfo as LeEdu.MODEL.UserInfo).Avatar;
                                                if (ddd == null)
                                                {
                                                    <img class="avatar-small" src="~/Content/img/default-head-image.png" />
                                                }
                                                else
                                                {
                                                    <img class="avatar-small" src="~/Img/@ddd" />
                                                }
                                            }
                                            <span class="nickname">@Html.Label("UserInfoId", Model.UserInfo.XingMing)</span>
                                            <label class="visible-checkbox"><input value="1" name="visible_4" checked="checked" type="checkbox"> 显示</label>
                                            <input name="ids[]" value="4" type="hidden">
                                            <button class="close delete-btn" data-role="item-delete" type="button" title="删除">× </button>
                                        </li>
                                    </ul>
                                    <div style="width:800px">
                                        <label class="col-md-2 control-label">请选择教师：</label>
                                        <div class="col-md-10 controls">
                                            @Html.DropDownList("UserInfoId", null, new { @class = "form-control width-input width-input-large" })
                                            <div class="help-block">拥有教师权限的用户</div>
                                        </div>
                                    </div>


                                    <script src="//hm.baidu.com/hm.js?ecd38448c7571783b5c98a22e7ada795"></script>
                                    <script type="text/plain" data-role="model">
                                        [{"id":"4","nickname":"Xifire","avatar":"\/files\/default\/2015\/12-02\/140812c46fe0111701.jpg?6.15.2","isVisible":true}]
                                    </script>
                                    <script type="text/x-handlebars-template" data-role="item-template">


                                        <li class="list-group-item clearfix" data-role="item">
                                            <span class="glyphicon glyphicon-resize-vertical sort-handle"></span>
                                            <img src="{{ avatar }}" class="avatar-small">
                                            <span class="nickname">{{ nickname }}</span>
                                            <label class="visible-checkbox"><input type="checkbox" value="1" name="visible_{{ id }}" {{#if isVisible }} checked="checked" {{/if}}> 显示</label>
                                            <input type="hidden" name="ids[]" value="{{ id }}">
                                            <button class="close delete-btn" data-role="item-delete" type="button" title="删除">&times; </button>
                                        </li>

                                    </script>

                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-md-offset-2 col-md-8 controls">
                                    <button type="submit" class="btn btn-fat btn-primary">保存</button>
                                </div>
                            </div>

                            <input name="_csrf_token" value="062218e7aeca80acd1a7a064e76a3e7cd36ba0c1" type="hidden">

                        </form>
                    </div>
                </div>

            </div>
            <!--课程图片-->
        </div>



    </div>
    
    <script>
        var app = {};
        app.debug = false;
        app.version = '6.9.3';
        app.httpHost = 'http://www.zhishile.com';
        app.basePath = '';
        app.theme = 'jianmo';
        app.themeGlobalScript = 'theme/global-script';
        app.jsPaths = { "common": "common", "theme": "\/themes\/jianmo\/js", "customwebbundle": "\/bundles\/customweb\/js", "customadminbundle": "\/bundles\/customadmin\/js", "topxiawebbundle": "\/bundles\/topxiaweb\/js", "topxiaadminbundle": "\/bundles\/topxiaadmin\/js", "classroombundle": "\/bundles\/classroom\/js" };
        app.crontab = '/common/crontab';

        var CKEDITOR_BASEPATH = app.basePath + '/assets/libs/ckeditor/4.6.7/';
        app.config = { "api": { "weibo": { "key": "" }, "qq": { "key": "" }, "douban": { "key": "" }, "renren": { "key": "" } }, "cloud": { "video_player": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/GrindPlayer.swf", "video_player_watermark_plugin": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/Watermake-1.0.3.swf", "video_player_fingerprint_plugin": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/Fingerprint-1.0.1.swf" }, "loading_img_path": "\/assets\/img\/default\/loading.gif?6.9.3" };
        app.arguments = {};
        app.controller = 'user/list';

        app.scripts = null;

        app.uploadUrl = '/file/upload';
        app.imgCropUrl = '/file/img/crop';
        app.lessonCopyEnabled = '0';
        app.mainScript = '/bundles/topxiaadmin/js/admin-app.js?6.9.3';
    </script>
    <script src="/Content/js/sea.js?6.9.3"></script>
    <script src="/Content/js/seajs-style.js?6.9.3"></script>
    <script src="/Content/js/seajs-global-config.js?6.9.3"></script>
    <script>
        seajs.use(app.mainScript);
    </script>  <div id="modal" class="modal"></div>
    <div class="fixed-bar">
        <a href="/admin/feedback" target='_blank' class="icon-question-text feedback">
            <i class="es-icon es-icon-help"></i>
            <span>产品<br />反馈</span>
        </a>
    </div>
</body>

</html>